# -*- coding: UTF-8 -*-
'''
@Project ：suanfa 
@File    ：02SelectSort.py
@IDE     ：PyCharm 
@Author  ：Wu
@Date    ：2023/12/13 16:37 
'''

# a = [99,3,5,11,88,2,4]
# sort_list = []
# def FindMix(List_1):
#     sort_list =  []
#     for i in range(len(List_1)):
#         min_n = List_1[0]
#         # min_tag = 0
#         for j in range(1,len(List_1)):
#             if List_1[j] < min_n:
#                 min_n = List_1[j]
#                 # min_tag = j
#         List_1.remove(min_n)
#         sort_list.append(min_n)
#     return sort_list
#
#
#
#
# print(FindMix(a))






a = [99,3,5,11,88,2,4]
sort_list = []
def FindMix(List_1):
    for i in range(0,len(List_1)):
        min_n = List_1[i]
        min_tag = i
        for j in range(i+1,len(List_1)):
            if List_1[j] < min_n:
                min_n = List_1[j]
                min_tag = j
        tmp = List_1[i]
        List_1[i] = min_n
        List_1[min_tag] = tmp
    return List_1
print(FindMix(a))